import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        System.out.println("请输入行数：");
        int n = num.nextInt();
        System.out.println("请输入列数：");
        int m = num.nextInt();
        fun(n, m);
    }

    //n代表行数，m代表列数
    public static void fun(int n, int m) {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print("@");
            }
            System.out.println("");
        }
    }
}
